package cn.wolfcode.shop.cloud.feign;

import cn.wolfcode.shop.cloud.common.Result;
import cn.wolfcode.shop.cloud.domain.Goods;
import cn.wolfcode.shop.cloud.feign.hystrix.GoodsFeignApiHystrix;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;
import java.util.Set;

@FeignClient(name = "goods-server",fallback = GoodsFeignApiHystrix.class)
public interface GoodsFeignApi {

    @RequestMapping("/queryGoods")
    Result<List<Goods>> queryGoods(@RequestParam("goodsId") Set<Long> goodsId);

}
